package com.example.demo;

import javafx.stage.Stage;

public class ModalStage  extends Stage {
    Object ownerController;

    public static   ModalStage  modalStage =null ;

    public ModalStage() {

    }

    public ModalStage( Stage  owner, String  title     )
    {
        super();
        modalStage =  this;

        this.initOwner(owner);
        this.setTitle(title);
        this.initModality(javafx.stage.Modality.APPLICATION_MODAL);
    }
}
